﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BizCollegeWebApp.Models.CourseContent>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AddContent
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%: ViewBag.Message %></h2>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
        type="text/javascript"></script>
    <form action="" method="post" enctype="multipart/form-data">
    <%: Html.ValidationSummary(true)%>
    <%: Html.ValidationMessage("ex")%>
    <fieldset>
        <legend>Section Content</legend>
        <%: Html.HiddenFor(model => model.ContentID)%>
        <%: Html.HiddenFor(model => model.CourseID)%>
        <div class="editor-label">
            Section Name:
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.SectionName, new { @class = "longTextField" })%>
            <%: Html.ValidationMessageFor(model => model.SectionName)%>
        </div>
        <div class="editor-label">
            Section Summary:
        </div>
        <div class="editor-field">
            <%: Html.TextArea("SectionDescription", Model.SectionDescription, new { @class = "cdTextArea" })%>
            <%: Html.ValidationMessageFor(model => model.SectionDescription)%>
        </div>
        <div class="editor-label">
            Upload the content:
        </div>
        <div class="editor-field">
            <input type="file" name="file" id="file" />
            <%: Html.ValidationMessage("file")%>
        </div>
        <p>
            <%: Html.ActionLink("Cancel", "Index")%>
            <input type="submit" value="Add Content" />
        </p>
    </fieldset>
    </form>
</asp:Content>
